Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 1 - Introduction to QuickDraw 3D / QuickDraw 3D Reference
QuickDraw 3D Routines


Managing Sets

A set object (or, more briefly, a set) is a collection of zero or more elements, each of which has both an element type and some associated element data. QuickDraw 3D provides routines that you can use to create a new set, get the type of a set, add elements to a set, get the data associated with an element in a set, loop through all the elements in a set, and perform other operations on sets.

In general, you'll use the routines described in this section to handle sets containing elements with custom element types. You should use other QuickDraw 3D routines to handle sets that consist solely of elements with predefined element types. For example, to create a set of vertex attributes, you can use the Q3VertexAttributeSet_New function (to create a new empty set of vertex attributes) and the Q3AttributeSet_Add function (to add elements to that set). See the chapter "Attribute Objects" for information on managing attribute sets. See the section "Defining Custom Elements" on page 3-17 for information on handling custom element types.


Subtopics
Q3Set_New
Q3Set_GetType
Q3Set_Add
Q3Set_Get
Q3Set_Contains
Q3Set_GetNextElementType
Q3Set_Empty
Q3Set_Clear

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996